package com.abc.controller;

import com.abc.bean.Bunk;
import com.abc.service.BunkService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: bc
 * @Date: 2024-11-17 12:44
 * @Description:
 */
@RestController()
@RequestMapping("/bunk")
public class BunkController {

    @Autowired
    private BunkService bunkService;

    @RequestMapping("/selectBunk")
    public List<Bunk> selectBunk() {
        return bunkService.selectBunk();
    }

}
